package com.xl333.calc;

/**
 * 从数字11开始，避开0-9，以免重复
 * @auth liux
 * @date 2021/6/18
 */
public enum OperatorEnum {

    PERCENT(11, "%"),
    CE(12, "CE"),
    C(13, "C"),
    DELETE(14, "<="),
    ADD(15, "+"),
    SUBTRACT(16, "-"),
    MULTIPLY(17, "*"),
    DIVIDE(18, "/"),
    EQUAL(19, "="),
    POINT(20, ".");

    private int type;

    private String operator;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    OperatorEnum(int type, String operator){
        this.type = type;
        this.operator = operator;
    }

}
